Add models available on the server + auto approval option - #142
Open
Nouvborne wants to merge 5 commits into
Open
Add models available on the server + auto approval option#142Nouvborne wants to merge 5 commits into
Nouvborne wants to merge 5 commits into
Conversation
The model picker was hardcoded to a 7-entry ModelPreset array that went stale as soon as the server's provider/model lineup changed. loadProvidersConfig() already fetched the full /config/providers response and built providerModelsIndex from it, but that data was only ever used by the context-usage ring - it never fed back into modelPresets itself. - AppState: rename the hardcoded array to defaultModelPresets (used only before the first successful connection, or if it fails) and add applyDynamicModelPresets(from:), called at the end of loadProvidersConfig(), which rebuilds modelPresets from the live server response and preserves the current selection by ID across the swap. - Add groupedModelPresetIndices to AppState+Models and provider section headers in the picker sheet. - Add a searchable filter matching model name or provider name. - refresh() now syncs the picker against message history. - Tapping a model now selects and dismisses the sheet immediately. Cherry-picked from grapeot#125 Fixes grapeot#99
Adds a Settings toggle that automatically allows incoming tool permission requests instead of surfacing permission cards. Auto-approve responses use .always when the server offers always-patterns, otherwise .once. Applied both on SSE permission.asked events and when polling pending permissions on session entry.
Drop the empty userhash field on the catbox upload (caused 'Invalid uploader') and add retry loops for both catbox and litterbox uploads so the share step reliably yields a download URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.